package nyan.cat.aset;

import nyan.cat.aset.ASet.AIterator;

public class Run { 
	static ASet mySet;

	public static void main(String[] args) {
		ContainerWindow myWindow = new ContainerWindow();

		mySet = new ASet();
		mySet.add("sword");
		mySet.add("cake");
		mySet.add("cat");
		mySet.add("=^_^=");
		mySet.add(666);

		System.out.println(mySet.size());
		System.out.println(mySet.toString());
		AIterator it = mySet.iterator();

		while (it.hasNext()) {
			System.out.print(it.next() + " ");
		}
		System.out.print("\n");

		System.out.println(mySet.contains("cake"));
		System.out.println(mySet.contains("apple"));
		mySet.remove("cake");

		it = mySet.iterator();
		while (it.hasNext()) {
			System.out.print(it.next() + " ");
		}
		mySet.clear();

		myWindow.setVisible(true);
	}
}
